/**
 * 
 */
package edu.hunau.cxb18.spring.life;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * 后置处理Bean
 * 
 * @author hb
 *
 *         2018年4月16日 下午5:11:57
 */
public class BeanPostProcessDemo implements BeanPostProcessor {

	@Override
	public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
		System.out.println("5-BeanPostProcessor#postProcessBeforeInitialization");
		return bean;
	}

	@Override
	public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
		System.out.println("8-BeanPostProcessor#postProcessAfterInitialization");
		return bean;
	}

}
